1a1e4500ba6469cc543b2e7644a2dbeb6a1d2fbc,src/main/java/org/jboss/invocation/proxy/AbstractSubclassFactory.java,AbstractSubclassFactory,overrideFinalize,#MethodBodyCreator#,296

Before Change


        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        creator.overrideMethod(classFile.addMethod(finalize), finalize);
    }

    /**

After Change


     * @param creator the method body creator to use
     */
    protected boolean overrideFinalize(MethodBodyCreator creator) {
        Method finalize = null;
        try {
            finalize = Object.class.getDeclaredMethod("finalize");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return overrideMethod(finalize, MethodIdentifier.getIdentifierForMethod(finalize), creator);
    }

    /**